import Vue from 'vue'
import App from './App'
import router from './router'
// 这个就是将整个组件都引入了
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import instance from './service'

import '../public/style/index.css'

import axios from './api/axios'

import Rsa from "@/utils/rsa"

import formTime from './utils/formTime'

import store from "@/store"

import * as echarts from 'echarts';
//引入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import '@/assets/font/fons.css'

// 引入图片裁剪库
import VueCropper from 'vue-cropper'
// 全局使用图片裁剪
Vue.use(VueCropper)
//注册全局
Vue.use(VueQuillEditor);

//需要挂载到Vue原型上
Vue.prototype.$echarts = echarts

Vue.prototype.$axios = axios;

// Vue.prototype.active = '';

// 将rsa加密方法添加到vue的原型链上
Vue.prototype.Rsa = Rsa;

// 将时间转换的方法添加到vue的原型链上
Vue.prototype.formTime = formTime;

Vue.use(ElementUI);
Vue.config.productionTip = false



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})

